<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>弹性缩变</title>
	<style type="text/css">
		*{
			margin: 0;
			padding: 0;
		}
		div{
			margin-top: 100px;
			height: 100px;
			background-color: red;
			text-align: center;
			line-height: 100px;
			overflow: hidden;
		}
		div span{
			margin: 0;
			font-size: 80px;
			transition: margin 3s; 
		}
		div:hover span{
			margin: 0 20px;
		}
	</style>
</head>
<body>
<div>
	<span>飞</span>
	<span>哥</span>
	<span>带</span>
	<span>你</span>
	<span>狂</span>
	<span>虐</span>
	<span>Java</span>
	<span>Script</span>
</div>
</body>
</html>

	